package com.itheima.prize.api.convert;

import com.itheima.prize.api.DTO.CardUserDTO;
import com.itheima.prize.commons.BO.CardUserBO;
import com.itheima.prize.commons.db.entity.CardUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;


/**
 * @author stone
 */
@Mapper
public interface CardUserConverter {

    CardUserConverter INSTANCE = Mappers.getMapper(CardUserConverter.class);

    CardUserDTO convertCardUserToDto(CardUser cardUser);

    CardUserDTO convertCardUserDtoToBO(CardUserBO cardUserBO);


}
